<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Like
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: _composeLikeButton.tpl 2010-09-07 17:53 idris $
 * @author     Idris
 */
?>

<?php $baseUrl = $this->base_url . $this->baseUrl(); ?>

<?php
 if ($this->actionName == 'like'){
  $background = "background: url(" . $baseUrl . "/application/modules/Like/externals/images/like_button.png) no-repeat left 0px;";
 }else{
  $background = "background: url(" . $baseUrl . "/application/modules/Like/externals/images/unlike_button.png) no-repeat left 0px;";  
 }
?>

<div class="like_button_wrapper">
  
  <div id="like_button_wrapper" class="like_button_button" style="float: left;">
    <div class="like_button_container">
      <a id="_<?php echo $this->subject->getGuid(); ?>" style="display: block; padding: 4px 5px; -moz-border-radius: 5px; border-radius: 5px; background-color: #ECEEF5; float: left; text-decoration: none;  border: 1px solid #738BB6;" class="like_button_link <?php echo $this->actionName; ?>" href="javascript:void(0)">
        <span class="<?php echo $this->actionName; ?>_button" style="<?php echo $background; ?> padding-left: 16px; font-weight: normal; font-family: 'lucida grande',tahoma,verdana,arial,sans-serif; font-size: 11px; color: #748AB7;" >
          <?php echo $this->translate('like_'.ucfirst($this->actionName)); ?>
        </span>
      </a>
    </div>
    <div class="clr" style="clear: both;"></div>
  </div>
  
  <table style="width: 80%; height: 50%;" cellpadding="0" cellspacing="0">
    <tr>
      <?php if ($this->icon_url): ?>
      <td valign="top" width="16">
        <img style="margin: 3px; 5px 3px 3px" src="<?php echo $this->icon_url; ?>" />
      </td>
      <?php endif; ?>
      <td valign="middle">
        <div id="like_button_likes" class="like_button_likes" style="float: left; margin-left: 5px; font-family: 'lucida grande',tahoma,verdana,arial,sans-serif; font-size: 11px; width: 80%;">
          <?php echo $this->displayLikes($this->likes, $this->like_count, true, $this->is_liked); ?>
          <div class="clr" style="clear: both;"></div>
        </div>
      </td>
    </tr>
  </table>
  
  <div class="clr" style="clear: both;"></div>
  
</div>